'use server';

import { prisma } from 'src/lib/prisma';

export async function getTagList() {
  const tags = await prisma.tag.findMany({
    orderBy: {
      createdAt: 'desc',
    },
  });
  return tags;
}
